import http from '@/utils/axios.js'

// 获取文章分页数据
export const getWikiPageListAPI = (data) => http.post("/admin/wiki/list", data)

// 新增知识库
export const addWikiAPI = (data) => http.post("/admin/wiki/add", data)

// 更新知识库置顶状态
export const updateWikiIsTopAPI = (data) => http.post("/admin/wiki/isTop/update", data)


// 更新知识库发布状态
export const updateWikiIsPublishAPI = (data) => http.post("/admin/wiki/isPublish/update", data)


// 删除知识库
export const deleteWikiAPI = (id) => http.post("/admin/wiki/delete", { id })

// 更新知识库
export const updateWikiAPI = (data) => http.post("/admin/wiki/update", data)

// 获取知识库目录
export const getWikiCatalogsAPI = (id) => http.post("/admin/wiki/catalog/list", { id })

// 更新知识库目录
export const updateWikiCatalogsAPI = (data) => http.post("/admin/wiki/catalog/update", data)


